<?php
require('config.php');

        $shopId=$_REQUEST['shopId'];
		//$sql="select * from `".$oto."_share`,`".$oto."_users` where ".$oto."_users.userId=".$oto."_share.userId and `shopId`='".$shopId."' order by `shareTime` DESC";
		$sql="SELECT a.serviceScore,a.timeScore,a.content,u.userName,a.anonymity,a.createTime FROM ".$oto."_goods_appraises as a,".$oto."_users as u where a.shopId='{$shopId}' and a.goodsId='0' and a.isDel='0' and a.isShow='1' and a.userId=u.userId order by a.createTime DESC ";
		$result=$db->query($sql);
		while($row=$result->fetch_assoc()){
			$ret[]=$row;//将取得的所有数据赋值给person_info数组
		}
		if(isset($ret)) echo json_encode($ret);
		else echo "[]";
?>